import http from "/@/utils/http";

// 接口类型和方法
interface BaseType{
    getVoid(url: string):any;
    get(url: string):any;
    get_config(url: string, headers: object):any;
}

class GetRequest implements BaseType{
    getVoid = (url: string) =>{
        http.request({
            url: url,
            method: 'get',
        })
    }
    get = (url: string) =>{
        return http.request({
            url: url,
            method: 'get',
        })
    }
    get_config = (url: string, headers: object) =>{
        return http.request({
            url: url,
            headers,
            method: 'get',
        })
    }
}

const get = new GetRequest()


export default get;